<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Home extends Public_Controller
{
	public function __construct()
	{
		parent::__construct();
		//$this->load->model('blog_m');
		$this->load->library(array('keywords/keywords'));
		$this->lang->load('home');
	}

	// blog/page/x also routes here
	public function index()
	{
		if (isset($userData['logged_in']) && $userData['logged_in']){
			$this->template
			->title($this->module_details['name'])
			->build('index', $this->data);
		}else{
			$this->template
			->title($this->module_details['name'])
			->build('index_not_login', $this->data);
		}
		
	}
}
